package com.qf.qfwemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qf.qfleadnewsmodel.commons.dtos.PageResponseResult;
import com.qf.qfleadnewsmodel.commons.dtos.ResponseResult;
import com.qf.qfleadnewsmodel.wemedia.dtos.MaterialPageDto;
import com.qf.qfleadnewsmodel.wemedia.pojos.WmMaterial;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface WmMaterialService extends IService<WmMaterial> {

    /**
     * 根据是否查询收藏的条件，返回分页数据
     * @param materialPageDto
     * @return
     */
    PageResponseResult pageByCollection(MaterialPageDto materialPageDto);

    /**
     * 素材图片上传
     * @param multipartFile
     * @return
     */
    ResponseResult uploadPic(MultipartFile multipartFile) throws Exception;
}
